package com.windgo.mapper;

import com.windgo.bean.bo.wxhomebo.WxCategoryBo;
import com.windgo.bean.bo.wxhomebo.WxChannelBo;
import com.windgo.bean.MarketCategory;
import com.windgo.bean.MarketCategoryExample;
import com.windgo.bean.bo.wxhomebo.WxHomeBo;
import com.windgo.bean.vo.MarketCategoryChildrenInfo;
import com.windgo.bean.vo.MarketCategoryInfoVO;
import com.windgo.bean.vo.MarketCategoryL1VO;
import com.windgo.bean.wxVo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCategoryMapper {
    List<WxCategoryBo>selectPidNoNull();
    List<WxCategoryBo> searchAllPidNullZero();
    List<WxChannelBo> selectAll();
    MarketCategory selectById(Integer id);
    long countByExample(MarketCategoryExample example);

    int deleteByExample(MarketCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCategory row);

    int insertSelective(MarketCategory row);

    List<MarketCategory> selectByExample(MarketCategoryExample example);

    MarketCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketCategory row, @Param("example") MarketCategoryExample example);

    int updateByExample(@Param("row") MarketCategory row, @Param("example") MarketCategoryExample example);

    int updateByPrimaryKeySelective(MarketCategory row);

    int updateByPrimaryKey(MarketCategory row);

    List<MarketCategoryInfoVO> selectAllParentMarketCategoryInfo();

    List<MarketCategoryChildrenInfo> selectChildrenCategoryInfoByPid(Integer pid);

    List<MarketCategoryL1VO> selectMarketCategoryL1();

    CurrentCategoryEntity selectCategoryById(Integer id);

    List<CurrentSubCategoryEntity> selectCategoryByPid(Integer id);

    List<CategoryListEntity> selectDefaultIndex();

    List<WxTopicListVo> selectWxTopic();

    TopicEntity getTopicDetailById(Integer id);

    GoodsEntity getTopicGoodsListById(Integer good);

    List<TopicEntity> selectRelatedTopic(Integer id);

    Integer selectSortOrderById(Integer id);

}